<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/grsun" prefix="grsun"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理员首页</title>
<%@ include file="/static/myjs/information/home/home_include.jsp"%>
</head>
<body>
<div id="main">
    <div class="apart">
        <div id="overdue">
            <div class="icon" style="background-color:red;">
                <i class="iconfont icon-tixian"></i>
            </div>
            <div  class="apart-left">
                <p>昨日提现</p>
                <a href="#" id="myBusinessWithdraw" ><i style="color:red;">${result.WITHDRAW_COUNT}家</i></a>
                <!--<a href="">-->
                <!--<i class="iconfont icon-sousuo"></i>-->
                <!--</a>-->
            </div>
        </div>
        <div id="try">
            <div class="icon">
                <i class="iconfont icon-dengdai1"></i>
            </div>
            <div class="apart-left">
                <p>注册待审核商户</p>
                <a href="#" id="myBusinessAudit"><i>${result.AUDIT_COUNT}家</i></a>
                <!--<a href="">-->
                <!--<i class="iconfont icon-sousuo"></i>-->
                <!--</a>-->
            </div>
        </div>
        <div id="today">
            <div class="icon">
                <i class="iconfont icon-iconfontcolor91"></i>
            </div>
            <div class="apart-left">
                <p>今日新增商户</p>
                <a href="#" id="myBusinessTodayAdd"><i>${result.TODAY_ADD_COUNT}家</i></a>
            </div>
        </div>
        <div id="waiting">
            <div class="icon">
                <i class="iconfont icon-shiyong"></i>
            </div>
            <div  class="apart-left">
                <p>试用商户</p>
                <a href="#" id="myBusinessOntria"><i>${result.BUSINESS_ONTRIA_NUMBER}家</i></a>
            </div>
        </div>
        <div id="commercial">
            <div class="icon">
                <i class="iconfont icon-dengdai"></i>
            </div>
            <div class="apart-left">
                <p>过期商户</p>
                <a href="#" id="myBusinessOverdue"><i>${result.BUSINESS_OVERDUE_NUMBER}家</i></a>
            </div>
        </div>
        <div id="expire">
            <div class="icon">
                <i class="iconfont icon-riqi"></i>
            </div>
            <div  class="apart-left">
                <p>即将到期商户</p>
                <a href="#"  id="myBusinessDue"><i>${result.BUSINESS_DOU_NUMBER}家</i></a>
                <h4>(半个月内)</h4>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
		$(function() {

			//注册待审核
			$('#myBusinessAudit').on('click', function() {
				window.parent.addTab('myBusinessAudit', '注册待审核', rootpath + '/audit/toList.do', 'fa-star', 'myBusinessAudit');
			})
			//提现商家数量
			$('#myBusinessWithdraw').on('click', function() {
				window.parent.addTab('myBusinessWithdraw', '提现商户', rootpath + '/home/toYesTodayWithdraw.do', 'fa-star', 'myBusinessWithdraw');
			})
			//今日新增
			$('#myBusinessTodayAdd').on('click', function() {
				window.parent.addTab('myBusinessTodayAdd', '今日新增', rootpath + '/home/toMyBusiness.do?flag=TODAY', 'fa-star', 'myBusinessTodayAdd');
			})
			//试用
			$('#myBusinessOntria').on('click', function() {
				window.parent.addTab('myBusinessOntriaId', '试用商户', rootpath + '/home/toMyBusiness.do?flag=ONTRIA', 'fa-star', 'myBusinessOntriaId');
			})
			
			//过期商户
			$('#myBusinessOverdue').on('click', function() {
				window.parent.addTab('myBusinessOverdueId', '过期商户', rootpath + '/home/toMyBusiness.do?flag=OVERDUE', 'fa-star', 'myBusinessOverdueId');
			})
			
			//即将过期商户
			$('#myBusinessDue').on('click', function() {
				window.parent.addTab('myBusinessDueId', '即将到期商户', rootpath + '/home/toMyBusiness.do?flag=DUE', 'fa-star', 'myBusinessDueId');
			})

		})
	</script>
</body>
</html>